//
//  Constants.swift
//  ReadHub
//
//  Created by 龙轶群 on 2017/5/12.
//  Copyright © 2017年 longyiqun. All rights reserved.
//

import Foundation
import UIKit
import UIColor_Hex_Swift

struct Constants {
    
    // 友盟
    static let uMengAppKey = "597625b1a40fa36f3a000bb4"
    
    // ReadHub API
    static let topicURL = "https://api.readhub.me/topic"
    static let newsURL = "https://api.readhub.me/news"
    static let techURL = "https://api.readhub.me/technews"
    
    // 百度图片URL
    static let baiduImageUrl = "https://image.baidu.com/search/acjson?tn=resultjson_com&ipn=rj&is=&fp=result&cl=2&lm=-1&ie=utf-8&oe=utf-8&adpicid=&st=-1&z=&ic=0"
    
    // 常量
    static let statusBarHeight: CGFloat = 72
    static let activityIndicatorWH: CGFloat = 80
    static let activityIndicatorColor: UIColor = UIColor(red: CGFloat(237 / 255.0), green: CGFloat(85 / 255.0), blue: CGFloat(101 / 255.0), alpha: 1)
    
    // 颜色常量
    static let mainBackGroundColor: UIColor = UIColor("#2B3347")
    static let grayTextColor: UIColor = UIColor("#8A8A8A")
	static let redColor: UIColor = UIColor("#c35655")
    
    // 4EDDC8
    static let mainTextColor: UIColor = UIColor(red: 78/255.0, green: 221/255.0, blue: 200/255.0, alpha: 1.0)
	
	// login URL
	static let loginURL = "https://longyiqun.com/index.php?service=User.LoginUser&"
	
	// Register URL
	static let registerURL = "https://longyiqun.com/index.php?service=User.AddUser&"
	
	// MyPageImageURL
	static let myPageImageURL = "https://longyiqun.com/pexels-photo-1.jpeg"
	
	// getCommentsURL
	static let getCommentsURL = "https://longyiqun.com/index.php?service=Comment.getCommentByTopicID"
	
	// submitCommentsURL
	static let submitCommentsURL = "https://longyiqun.com/index.php?service=Comment.AddComment"
}
